package com.flower.enjoyment.flower.mapper;

import com.flower.enjoyment.flower.entity.UserInfo;
import com.flower.enjoyment.flower.entityDo.UserInfoDo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserInfoMapper {
    int deleteByPrimaryKey(String id);

    int insert(UserInfo record);

    UserInfoDo selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(UserInfo record);

    int updateShareAmount(UserInfo record);

    /**
     * 根据openID获取用户信息
     * @param openId
     * @return
     */
    UserInfoDo selectByOpenId(@Param("openId") String openId);

    List<UserInfoDo> selectListBySourceUserId(@Param("sourceUserId") String sourceUserId);

    int updateTodayIncome();




}